From 8985ce3b7245df120659f3537214a16b144392fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Sun, 2 Oct 2011 21:21:49 +0100 Subject: [PATCH] gtkbox: Move private functions to private header --- gtk/Makefile.am | 1 + gtk/gtkbbox.c | 1 + gtk/gtkbox.c | 1 + gtk/gtkbox.h | 7 ------- gtk/gtkboxprivate.h | 34 ++++++++++++++++++++++++++++++++++ gtk/gtkdialog.c | 1 + gtk/gtkstatusbar.c | 4 +++- 7 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 gtk/gtkboxprivate.h diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 8a11903b2d..c82cb56f16 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -390,6 +390,7 @@ gtk_private_h_sources = \ gtkappchooseronline.h \ gtkbindingsprivate.h \ gtkborderimageprivate.h \ + gtkboxprivate.h \ gtkbuilderprivate.h \ gtkbuttonprivate.h \ gtkcellareaboxcontextprivate.h \ diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c index 57d87afabe..bdecd58b65 100644 --- a/gtk/gtkbbox.c +++ b/gtk/gtkbbox.c @@ -53,6 +53,7 @@ #include "gtkbbox.h" +#include "gtkboxprivate.h" #include "gtkorientable.h" #include "gtktypebuiltins.h" #include "gtkprivate.h" diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index b3b4db9518..f9792a8e1b 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -80,6 +80,7 @@ #include "config.h" #include "gtkbox.h" +#include "gtkboxprivate.h" #include "gtkorientable.h" #include "gtksizerequest.h" #include "gtktypebuiltins.h" diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h index 906aa2e9d7..55a08e9934 100644 --- a/gtk/gtkbox.h +++ b/gtk/gtkbox.h @@ -109,13 +109,6 @@ void gtk_box_set_child_packing (GtkBox *box, guint padding, GtkPackType pack_type); -/* internal API */ -void _gtk_box_set_old_defaults (GtkBox *box); -gboolean _gtk_box_get_spacing_set (GtkBox *box); -void _gtk_box_set_spacing_set (GtkBox *box, - gboolean spacing_set); -GList *_gtk_box_get_children (GtkBox *box); - G_END_DECLS #endif /* __GTK_BOX_H__ */ diff --git a/gtk/gtkboxprivate.h b/gtk/gtkboxprivate.h new file mode 100644 index 0000000000..9a4d463a4c --- /dev/null +++ b/gtk/gtkboxprivate.h @@ -0,0 +1,34 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2011 Javier Jardón + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#ifndef __GTK_BOX_PRIVATE_H__ +#define __GTK_BOX_PRIVATE_H__ + +G_BEGIN_DECLS + + +void _gtk_box_set_old_defaults (GtkBox *box); +gboolean _gtk_box_get_spacing_set (GtkBox *box); +void _gtk_box_set_spacing_set (GtkBox *box, + gboolean spacing_set); +GList *_gtk_box_get_children (GtkBox *box); + + +G_END_DECLS + +#endif /* __GTK_BOX_PRIVATE_H__ */ diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index ad32047a71..076261c900 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -35,6 +35,7 @@ #include "gtklabel.h" #include "gtkmarshalers.h" #include "gtkbox.h" +#include "gtkboxprivate.h" #include "gtkmain.h" #include "gtkintl.h" #include "gtkbindings.h" diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index 3a7df1736e..8548ec2f14 100644 --- a/gtk/gtkstatusbar.c +++ b/gtk/gtkstatusbar.c @@ -27,10 +27,12 @@ #include "config.h" +#include "gtkstatusbar.h" + +#include "gtkboxprivate.h" #include "gtkframe.h" #include "gtklabel.h" #include "gtkmarshalers.h" -#include "gtkstatusbar.h" #include "gtkwindow.h" #include "gtkprivate.h" #include "gtkintl.h" -- 2.30.2